package com.book.book.dao;

import com.book.book.domain.BooksDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 图书商品表
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
@Mapper
public interface BooksDao {

	BooksDO get(Integer bookId);

	List<BooksDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(BooksDO books);

	int update(BooksDO books);

	int remove(Integer book_id);

	int batchRemove(Integer[] bookIds);

	List<BooksDO> getbooks(String userId );

	/**
	 * 带有 分类名 的查询
	 * @param map
	 * @return
	 */
	List<BooksDO> listWithCatName(Map<String, Object> map);
}
